<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>查看服务类型</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->

<!-- 新 Bootstrap 核心 CSS 文件 -->
<link
	href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css"
	rel="stylesheet">

<!-- 可选的Bootstrap主题文件（一般不使用） -->
<script
	src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap-theme.min.css"></script>

<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
<script
	src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>

<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script
	src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>

<link rel="stylesheet" type="text/css" href="css/home.css">
<!-- 标签页logo -->
<link rel="shortcut icon" href="img/logo2.ico"/>

</head>

<body>
	<div id="table-center">
		<div>
			<h3>
				店铺信息 <a class="btn btn-info " href="home.jsp" role="button">返回主页</a>
			</h3>
		</div>
		<table class="table table-hover">
			<thead>
				<th>ID</th>
				<th>商店名称</th>
				<th>商店信息</th>
				<th>商店地址</th>
				<th>联系电话</th>
				<th>操作</th>
			</thead>
			<tbody>
				<s:iterator value="list" var="list">
					<tr>
						<td><s:property value="#list.id" /></td>
						<td><s:property value="#list.storeName" /></td>
						<td><s:property value="#list.storeInfo" /></td>
						<td><s:property value="#list.storeAddress" /></td>
						<td><s:property value="#list.storePhone" /></td>
						<td>
							<form action="delStoreInfo.action" method="post">
								<input type="hidden" name="storeInfo.id"
									value="<s:property value="#list.id"/>">
								
								<button onclick="alert('删除成功!')" type="submit"
									class="btn btn-danger">删除</button>
								
								<a class="btn btn-info" role="button"
									href="storeCId.action?storeInfo.id=<s:property value="#list.id"/>">修改</a>
							</form>
						</td>
					</tr>
				</s:iterator>
			</tbody>
		</table>
	</div>

</body>
</html>
